package com.econ.powercloud.ems.dal.entity.ext;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * iot_服务发送记录表
 * </p>
 *
 * @author AutoGenerator
 * @since 2021-06-29
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
public class IotEdgePlatformSyncMsg extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 消息通讯id, 一般情况与pid 相同
     */
    private String msgId;

    /**
     * 产品Key
     */
    private String productKey;

    private String deviceName;

    private String deviceCode;

    /**
     * 发送topic
     */
    private String topic;

    /**
     * 服务Id
     */
    private String serviceId;

    /**
     * 服务编码-遥控遥调点号
     */
    private String serviceCode;

    /**
     * 服务编码-遥控遥调点号
     */
    private String serviceName;

    /**
     * 发送状态
     */
    private Integer sendStatus;

    /**
     * 下发值
     */
    private String serviceValue;

    /**
     * 发送途径, mq, mqtt
     */
    private Integer sendMedium;

    /**
     * 查看枚举：EdgeSendSourceMsgType
     *
        FROM_CLOUD(1, "云端发起消息"),
        FROM_DEVICE(2, "设备端发起消息"),
        FROM_LOCAL(3, "来自就地系统"),
        FROM_MQTT_BROKER(4, "来自mqtt_broke"),
     */
    private Integer msgType;

}
